package com.itcm.skymail.ware.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.itcm.common.utils.PageUtils;
import com.itcm.skymail.ware.entity.WareSkuEntity;
import com.itcm.skymail.ware.entity.vo.SkuHasStockVo;

import java.util.List;
import java.util.Map;

/**
 * 商品库存
 *
 * @author cm_fighting
 * @email cmtianxie@163.com
 * @date 2020-08-27 17:03:07
 */
public interface WareSkuService extends IService<WareSkuEntity> {

    PageUtils queryPage(Map<String, Object> params);

    PageUtils queryPageByCondition(Map<String, Object> params);

    void addStock(Long skuId, Long wareId, Integer skuNum);

    List<SkuHasStockVo> getSkuHasStock(List<Long> skuIds);
}

